package com;

import javax.servlet.*;
import java.io.IOException;

public class Text2 implements Servlet {
    public Text2(){
        System.out.println("无参构造方法执行");
    }


    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("执行init方法");

    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("执行service方法");

    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {
        System.out.println("执行destroy方法");
    }
}
